package com.logictech.lims.dao.impl;

import java.util.List;

import org.jeecgframework.p3.core.utils.common.PageQuery;
import org.jeecgframework.p3.core.utils.common.PageQueryWrapper;
import org.jeecgframework.p3.core.utils.persistence.mybatis.GenericDaoDefault;
import org.springframework.stereotype.Repository;
import com.logictech.lims.dao.LogDao;
import com.logictech.lims.entity.Log;

/**
 * 描述：</b>LogDaoImpl<br>
 * @author：guoqi
 * @since：2017年04月20日 03时25分36秒 星期四 
 * @version:1.0
 */
@Repository("logDao")
public class LogDaoImpl extends GenericDaoDefault<Log> implements LogDao{

	@Override
	public Integer count(PageQuery<Log> pageQuery) {
		return (Integer) super.queryOne("count",pageQuery);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Log> queryPageList(
			PageQuery<Log> pageQuery,Integer itemCount) {
		PageQueryWrapper<Log> wrapper = new PageQueryWrapper<Log>(pageQuery.getPageNo(), pageQuery.getPageSize(),itemCount, pageQuery.getQuery());
		return (List<Log>)super.query("queryPageList",wrapper);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Log> queryList(String logContent) {
		return (List<Log>)super.query("queryList",logContent);
	}
}

